import 'dart:async';

import 'dart:ffi';

import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'apple_maps_method_channel.dart';

abstract class AppleMapsPlatform extends PlatformInterface {
  /// Constructs a AppleMapsPlatform.
  AppleMapsPlatform() : super(token: _token);

  static final Object _token = Object();

  static AppleMapsPlatform _instance = MethodChannelAppleMaps();

  /// The default instance of [AppleMapsPlatform] to use.
  ///
  /// Defaults to [MethodChannelAppleMaps].
  static AppleMapsPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AppleMapsPlatform] when
  /// they register themselves.
  static set instance(AppleMapsPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> startCompass() {
    throw UnimplementedError('startCompass() has not been implemented.');
  }

  Future<void> stopCompass() {
    throw UnimplementedError('stopCompass() has not been implemented.');
  }

  StreamController<double> getCompassStream() {
    throw UnimplementedError('getCompassStream() has not been implemented.');
  }


}
